package org.summer.lawyer.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.summer.common.mybatis.core.mapper.BaseMapperPlus;
import org.summer.lawyer.domain.SpuOrderAssign;
import org.summer.lawyer.domain.bo.spuorderassign.SpuOrderAssignBo;
import org.summer.lawyer.domain.vo.spuorderassign.SpuOrderAssignVo;

import java.util.List;

/**
 * 派单Mapper接口
 *
 * @author summer
 * @date 2024-06-27
 */
@Mapper
public interface SpuOrderAssignMapper extends BaseMapperPlus<SpuOrderAssign, SpuOrderAssignVo> {


    Page<SpuOrderAssignVo> selectPageLawFirmList(@Param("page") Page<SpuOrderAssignVo> page, @Param(Constants.WRAPPER) Wrapper<SpuOrderAssignBo> queryWrapper);


    List<SpuOrderAssignVo> selectSpuOrderAssignLawFirmList(@Param(Constants.WRAPPER) Wrapper<SpuOrderAssignBo> queryWrapper);

    Long reviewOrderCountByLawFirmId(@Param("lawFirmId") Long lawFirmId);
}
